<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/admin/header.jsp"%>
<%
	request.setAttribute("ModifyMessageUrl", com.sz.controller.frame.UserController.MODIFY_MESSAGE_URL);
%>
<base href="${ctx }/admin/" />

</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>修改个人信息
		<a class="btn btn-success radius r"
			style="line-height: 1.6em; margin-top: 3px"
			href="javascript:location.replace(location.href);" title="刷新"> <i
			class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="page-container">
		<form id="modifymessageform" class="form form-horizontal "
			action="${ctx }${ModifyMessageUrl}" method="post">
			<input type="hidden" id="id" name="id" value="${user.id }" />
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red">*</span>姓名：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input id="name" name="name" class="input-text"
						value="${user.name }" type="text">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"></span>座机：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input id="telphone" name="telphone" class="input-text"
						value="${user.telphone }" datatype="m" type="text">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red">*</span>手机：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input id="cellphone" name="cellphone" class="input-text"
						value="${user.cellphone }" type="text">
				</div>
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
						<button class="btn btn-primary radius" type="submit">
							<i class="Hui-iconfont">&#xe632;</i> 保存
						</button>
					<button onClick="setNo();" class="btn btn-default radius"
						type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>
			</div>

		</form>
	</div>
	<%@ include file="/admin/footer.jsp"%>
	<script type="text/javascript">
	
		$("#modifymessageform").validate({
			tiptype : 2,
			rules : {
				cellphone : {
					required : true,
					isMobile : true
				}
			},
			focusInvalid : false,
			onkeyup : false,
			submitHandler : function(form) {
				form.submit();
			}
		});
		$(function() {
			var saveSuccess = '${saveSuccess}';
			if (saveSuccess == 'ok') {
				layer.msg('修改成功!', {
					icon : 1,
					time : 3000
				});
			}
		})
	</script>
</body>
</html>